﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Home/jquery.treeview.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Home/jquery-metro-1.0.0.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Home/jquery-metro-grid-1.0.0.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Home/site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.tmpl.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.cookie.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.treeview.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-purl.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.mousewheel.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-metro-1.0.0.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-metro-grid-1.0.0.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/site.js")" type="text/javascript"></script>
    <script type="text/javascript">
        var $metro;
        $(document).ready(function () {
            $metro = $('.metro_layout').metro();

            var message = $.url().param('Message');
            if (message != undefined) {
                showMessage(message);
            }
            var error = $.url().param('Error');
            if (error != undefined) {
                showError(error);
            }

            $(window).resize(function () {
                adjustOverlay();
            });


            $(document).bind('click', function () {
                $('.metro_input_dropdownselect:visible').hide();
            });
        });
    </script>
</head>
<body>
    <div class="metro_layout">
        <div class="metro_center">
            <div class="metro_center_contain">
                <div class="metro_center_caption">
                    @ViewBag.Title
                </div>
                <div class="metro_center_wrapper">
                    @RenderBody()
                </div>
            </div>
        </div>
        <div class="metro_side bottom">
            <div class="metro_side_contain bottom">
                <div class="metro_side_caption">
                </div>
                <div class="metro_side_content">
                </div>
            </div>
        </div>
        <div class="metro_custom">
            <div class="metro_overlay">
                <div class="metro_overlay_content">
                    請稍等，正在加載數據
                </div>
            </div>
        </div>
    </div>
</body>
</html>
